<?php echo $header; ?>
<div id="content">
   <div class="breadcrumb">
    <?php echo $this->breadCrumbs(); ?>
  </div>
  <div class="box">
    <div class="heading">
      <h1><img src="view/image/mail.png" alt="" /><?php echo $_['heading_title'];?></h1>
      <div class="buttons">
      <a onclick="location = '<?php echo UA('sale/mail_task'); ?>'" class="button"><span><?php echo $_['button_back']; ?></span></a>
      </div>
    </div>
    <div class="content">
        <table class="list">
          <thead>
            <tr height="30">
			  <td><?php echo $_['text_email']; ?></td>
			  <td><?php echo $_['text_date_sent']?></td>
			  <td><?php echo $_['text_date_opened']?></td>
			  <td><?php echo $_['text_status']?></td>
			  <td><?php echo $_['text_note']?></td>
            </tr>
          </thead>
          <tbody>
            <?php if ($items) { ?>
            <?php foreach ($items as $item) { ?>
            <tr  height="30" onmouseover="this.className='on';" onmouseout="this.className='';">
            <td><?php echo $item['email']?></td>
            <td><?php echo $item['date_sent']?></td>
            <td><?php echo $item['date_opened']?></td>
            <td>
            <?php if ($item['status'] == 1) {?>
            	<img src="view/image/warning.png" />
            <?php } elseif ($item['status'] == 2) {?>
            	<img src="view/image/success.png" />
            <?php }?>
            </td>
            <td><?php echo $item['note']?></td>
            </tr>
            <?php } ?>
            <?php } else { ?>
            <tr>
              <td class="center" colspan="5"><?php echo $_['text_no_results']; ?></td>
            </tr>
            <?php } ?>
          </tbody>
        </table>
	  <div class="pagination"><?php echo $pagination; ?></div>
    </div>
  </div>
</div>
<?php echo $footer; ?>